//
//  HMProfileTableViewController.swift
//  微博
//
//  Created by 郭鉴增 on 2016/12/1.
//  Copyright © 2016年 郭鉴增. All rights reserved.
//

import UIKit

class HMProfileTableViewController: HMVisitorTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        if isLogin{
            setupUI()
        }else{
            visitorView?.updateVisitorInfo(imageName: "visitordiscover_image_profile", message: "登陆后,你的微博.相册.个人资料都会显示在这里,展示给别人")
        }
    }
    
    //添加push按钮
    private func setupUI(){
        navigationItem.rightBarButtonItem = UIBarButtonItem(title:"Push",target:self,action:#selector(pushAction))
    }
    
    
    //MARK: - push操作
    @objc private func pushAction(){
        let testVC = HMTestViewController()
        self.navigationController?.pushViewController(testVC, animated: true)
    }
}













